//
//  FGTemplateModel.h
//  lite
//
//  Created by feige on 2022/11/1.
//

#import <Foundation/Foundation.h>

// 模板类型
typedef NS_ENUM(NSInteger, FGTemplateType) {
    FGTemplateTypeInterest = 1, ///< 兴趣
    FGTemplateTypeHelp,         ///< 帮助
    FGTemplateTypeGoods,        ///< 商品
    FGTemplateTypeActivity,     ///< 活动
    FGTemplateTypeFrom,         ///< 表单
};

NS_ASSUME_NONNULL_BEGIN

@interface FGTemplateModel : NSObject
@property (nonatomic, strong) NSNumber *id; ///< 1,
@property (nonatomic, copy) NSString *name; ///< "兴趣模板",
@property (nonatomic, strong) NSNumber *pid; ///< 0,
@property (nonatomic, assign) BOOL isView; ///< true,
@property (nonatomic, assign) FGTemplateType type; ///< 1,
@property (nonatomic, strong) id data; ///< Array[4],
@property (nonatomic, copy) NSString *tips; ///< "您可能还对以下问题感兴趣",
@property (nonatomic, strong) NSArray<FGTemplateModel *> *children; ///< null
// custom
@property (nonatomic, assign) BOOL open;
@property (nonatomic, assign) BOOL selected;
@property (nonatomic, copy) NSString *typeStr;
@property (nonatomic, assign) CGFloat height;
@end

NS_ASSUME_NONNULL_END
